package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 房屋绑定记录 对象 zy_owner_room_record
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
public class OwnerRoomRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 房屋绑定记录id */
    private Long recordId;

    /** 房屋绑定id */
    @Excel(name = "房屋绑定id")
    private String ownerRoomId;

    /** 小区id */
    @Excel(name = "小区id")
    private Long communityId;

    /** 楼栋id */
    @Excel(name = "楼栋id")
    private Long buildingId;

    /** 单元id */
    @Excel(name = "单元id")
    private Long unitId;

    /** 房间id */
    @Excel(name = "房间id")
    private Long roomId;

    /** 业主id */
    @Excel(name = "业主id")
    private Long ownerId;

    /** 业主类型 */
    @Excel(name = "业主类型")
    private String ownerType;

    /** 绑定状态（0审核中 1绑定 2审核失败,3解绑） */
    @Excel(name = "绑定状态", readConverterExp = "0=审核中,1=绑定,2=审核失败,3解绑")
    private String roomStatus;

    /** 审核意见 */
    @Excel(name = "审核意见")
    private String recordAuditOpinion;

    /** 审核人类型 */
    @Excel(name = "审核人类型")
    private String recordAuditType;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long createById;

    @Excel(name = "房屋绑定")
    private OwnerRoom ownerRoom;

    @Excel(name = "小区")
    private Community community;

    @Excel(name = "小区名称")
    private String communityName;

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getOwnerRealName() {
        return ownerRealName;
    }

    public void setOwnerRealName(String ownerRealName) {
        this.ownerRealName = ownerRealName;
    }

    @Excel(name = "楼栋名称")
    private String buildingName;
    @Excel(name = "单元名称")
    private String unitName;
    @Excel(name = "房屋名称")
    private String roomName;
    @Excel(name = "业主名称")
    private String ownerRealName;

    public OwnerRoom getOwnerRoom() {
        return ownerRoom;
    }

    public void setOwnerRoom(OwnerRoom ownerRoom) {
        this.ownerRoom = ownerRoom;
    }

    public Community getCommunity() {
        return community;
    }

    public void setCommunity(Community community) {
        this.community = community;
    }

    public Building getBuilding() {
        return building;
    }

    public void setBuilding(Building building) {
        this.building = building;
    }

    public Unit getUnit() {
        return unit;
    }

    public void setUnit(Unit unit) {
        this.unit = unit;
    }

    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }

    public Owner getOwner() {
        return owner;
    }

    public void setOwner(Owner owner) {
        this.owner = owner;
    }

    @Excel(name = "楼栋")
    private Building building;

    @Excel(name = "单元")
    private Unit unit;

    @Excel(name = "房屋")
    private Room room;

    @Excel(name = "业主")
    private Owner owner;

//    @Excel(name = "业主")
//    private Owner owner;



    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setOwnerRoomId(String ownerRoomId) 
    {
        this.ownerRoomId = ownerRoomId;
    }

    public String getOwnerRoomId() 
    {
        return ownerRoomId;
    }
    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }
    public void setBuildingId(Long buildingId) 
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId() 
    {
        return buildingId;
    }
    public void setUnitId(Long unitId) 
    {
        this.unitId = unitId;
    }

    public Long getUnitId() 
    {
        return unitId;
    }
    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }
    public void setOwnerId(Long ownerId) 
    {
        this.ownerId = ownerId;
    }

    public Long getOwnerId() 
    {
        return ownerId;
    }
    public void setOwnerType(String ownerType) 
    {
        this.ownerType = ownerType;
    }

    public String getOwnerType() 
    {
        return ownerType;
    }
    public void setRoomStatus(String roomStatus) 
    {
        this.roomStatus = roomStatus;
    }

    public String getRoomStatus() 
    {
        return roomStatus;
    }
    public void setRecordAuditOpinion(String recordAuditOpinion) 
    {
        this.recordAuditOpinion = recordAuditOpinion;
    }

    public String getRecordAuditOpinion() 
    {
        return recordAuditOpinion;
    }
    public void setRecordAuditType(String recordAuditType) 
    {
        this.recordAuditType = recordAuditType;
    }

    public String getRecordAuditType() 
    {
        return recordAuditType;
    }
    public void setCreateById(Long createById) 
    {
        this.createById = createById;
    }

    public Long getCreateById() 
    {
        return createById;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("ownerRoomId", getOwnerRoomId())
            .append("communityId", getCommunityId())
            .append("buildingId", getBuildingId())
            .append("unitId", getUnitId())
            .append("roomId", getRoomId())
            .append("ownerId", getOwnerId())
            .append("ownerType", getOwnerType())
            .append("roomStatus", getRoomStatus())
            .append("recordAuditOpinion", getRecordAuditOpinion())
            .append("recordAuditType", getRecordAuditType())
            .append("createById", getCreateById())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
